# -- coding: utf-8 -- 
# Name: numberguess


"""Author: Ken LambertPlays a game of guess the number with the user."""

import random


def main():
    """Inputs the bounds of the range of numbers
     and lets the user guess the computer’s number until
     the guess is correct."""
    smaller = int(input("enter the smaller number: "))
    larger = int(input("enter the larger number: "))
    mynumber = random.randint(smaller, larger)
    count = 0
    while True:
        count += 1
        usernumber = int(input('enter your guess: '))
        if usernumber < mynumber:
            print('too small')
        elif usernumber > mynumber:
            print('too larger')
        else:
            print('you have got it in ,', count, "tries")
            break


if __name__ == '__main__':
    main()
